package com.fcscs.cservice.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fcscs.cservice.dao.CuisineTypeDao;
import com.fcscs.cservice.domain.CuisineType;
import com.fcscs.cservice.service.CuisineTypeManager;

@Service("cuisineTypeManager")
public class CuisineTypeManagerImpl implements CuisineTypeManager {
	
	@Autowired
	private CuisineTypeDao dao;

	@Override
	public <E extends CuisineType> E get(Class<E> cls, long id) {
		return dao.get(cls, id);
	}

	@Override
	public CuisineType get(long id) {
		return dao.get(id);
	}

	@Override
	public Boolean delete(CuisineType loc) {
		return dao.delete(loc);
	}

	@Override
	public void permDelete(CuisineType loc) {
		dao.permDelete(loc);
	}

	@Override
	public <E extends CuisineType> E save(E loc) {
		return dao.save(loc);
	}

	@Override
	public List<CuisineType> getCuisineTypes(long orgId, Long propId) {
		return dao.getCuisineTypes(orgId, propId);
	}

		
}
